package com.example.system.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.system.domain.Process;
import com.example.system.domain.bo.ProcessBo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (SysProcess)表数据库访问层
 */
@Mapper
public interface ProcessMapper extends BaseMapper<Process> {
    List<Process> getProcessListByUserId(@Param("userId") int userId);

    List<Process> getProcessListByProjectId(@Param("projectId") int project_id);

    List<Process> getProcessListByUserIdsAndProjectId(@Param("users") List<Integer> userIdS, @Param("projectId") Integer projectId);

    int getLastId();

    void insertProcessList(@Param("List") List<Process> insertList);

    void deleteList(@Param("List") List<Process> deleteList);

    void updateList(@Param("List") List<Process> processList);

    void updateProcess(@Param("bo") ProcessBo processBo);
}

